#include <Windows.h>
#include "../AdolysEngine/Engine/main/aeMain.h"

int WINAPI wWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow )
{
	UNREFERENCED_PARAMETER( hPrevInstance );
	UNREFERENCED_PARAMETER( lpCmdLine );

// 	HMODULE hGame = LoadLibrary( L"../Link/AdolysEngine_Debug.dll" );
// 
// 	if( !hGame )
// 		return -1;
// 
// 	if( hGame )
// 		ADEMain = (int (*)(HINSTANCE hInstance, HINSTANCE h, LPWSTR lpCmdLine, int nShow ))GetProcAddress(hGame, "ADEMain");
// 
// 	if( !ADEMain )
// 	{
// 		FreeLibrary( hGame );
// 		return -1;
// 	}
	
	int ret = ADE_Main( hInstance, hPrevInstance, lpCmdLine, nCmdShow );

// 	FreeLibrary( hGame );

	return ret;
}

